package org.je.xml.stream;

/**
 * 普通对象序列化，反序列化工具
 * 
 * @author fyf
 */
public class XStream
{
	private static ToXml	b2x	= new ToXml();

	private static ToBean	x2b	= new ToBean();

	/***
	 * @param xml
	 * @return Object
	 */
	public static Object toBean(String xml) {
		return x2b.toBean(xml);
	}

	/**
	 * @param bean
	 * @return xml
	 */
	public static String toXml(Object bean) {
		return b2x.toXml(bean);
	}
}
